* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.subtitle {
    font-size: 14px;
    color: #666;
}

.login-tabs {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    color: #007AFF;
    background-color: #f8f9fa;
    font-weight: 500;
}

.login-forms {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #007AFF;
    outline: none;
}

.code-group {
    display: flex;
    gap: 10px;
}

.code-group input {
    flex: 1;
}

.get-code-btn {
    padding: 0 15px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.get-code-btn:hover {
    background-color: #0056CC;
}

.get-code-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #0056CC;
}

.switch-page {
    text-align: center;
    margin-top: 20px;
}

.switch-page a {
    color: #007AFF;
    text-decoration: none;
}

.switch-page a:hover {
    text-decoration: underline;
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header {
        padding-top: 20px;
    }

    header h1 {
        font-size: 22px;
    }

    .tab {
        font-size: 14px;
        padding: 12px 0;
    }

    .input-group input {
        padding: 12px;
    }

    .login-btn {
        padding: 12px;
    }
}